import django_filters

from apps.project.models import Project


class ProjectFilter(django_filters.rest_framework.FilterSet):

    name = django_filters.CharFilter(field_name='name', lookup_expr='icontains')
    type = django_filters.CharFilter(field_name='type')

    class Meta:
        model = Project
        fields = ['name', 'type']
